<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkFlowNodeActions
 *
 * @ORM\Table(name="tk_flow_node_actions", indexes={@ORM\Index(name="vcc_flow_node_index", columns={"vcc_id", "flow_id", "node_id"})})
 * @ORM\Entity
 */
class TkFlowNodeActions
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="flow_id", type="integer", nullable=false, options={"comment"="流程ID"})
     */
    private $flowId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="node_id", type="integer", nullable=false, options={"comment"="节点ID"})
     */
    private $nodeId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="action_name", type="string", length=50, nullable=false, options={"comment"="动作名称（显示为按钮名称）"})
     */
    private $actionName;

    /**
     * @var bool
     *
     * @ORM\Column(name="action_type", type="boolean", nullable=false, options={"default"="3","comment"="动作类型（1结束2保存3跳转4退回）"})
     */
    private $actionType = '3';

    /**
     * @var int
     *
     * @ORM\Column(name="jump_node_id", type="integer", nullable=false, options={"comment"="跳转的节点ID"})
     */
    private $jumpNodeId = '0';

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getVccId(): ?int
    {
        return $this->vccId;
    }

    public function setVccId(int $vccId): self
    {
        $this->vccId = $vccId;

        return $this;
    }

    public function getFlowId(): ?int
    {
        return $this->flowId;
    }

    public function setFlowId(int $flowId): self
    {
        $this->flowId = $flowId;

        return $this;
    }

    public function getNodeId(): ?int
    {
        return $this->nodeId;
    }

    public function setNodeId(int $nodeId): self
    {
        $this->nodeId = $nodeId;

        return $this;
    }

    public function getActionName(): ?string
    {
        return $this->actionName;
    }

    public function setActionName(string $actionName): self
    {
        $this->actionName = $actionName;

        return $this;
    }

    public function getActionType(): ?bool
    {
        return $this->actionType;
    }

    public function setActionType(bool $actionType): self
    {
        $this->actionType = $actionType;

        return $this;
    }

    public function getJumpNodeId(): ?int
    {
        return $this->jumpNodeId;
    }

    public function setJumpNodeId(int $jumpNodeId): self
    {
        $this->jumpNodeId = $jumpNodeId;

        return $this;
    }


}
